CC=gcc
CFLAGS=-c -g -Wall -ansi -DDEBUG
LDFLAGS=

all: uvicfmt3 driver

uvicfmt3: uvicfmt3.o uvic_formatter.o
	$(CC) $(LDFLAGS) uvicfmt3.o uvic_formatter.o -o uvicfmt3

driver: driver.o uvic_formatter.o
	$(CC) $(LDFLAGS) driver.o uvic_formatter.o -o driver

driver.o: driver.c uvic_formatter.h
	$(CC) $(CFLAGS) driver.c

uvicfmt3.o: uvicfmt3.c uvic_formatter.h
	$(CC) $(CFLAGS) uvicfmt3.c

uvic_formatter.o: uvic_formatter.c uvic_formatter.h
	$(CC) $(CFLAGS) uvic_formatter.c

clean:
	/bin/rm -f uvicfmt3 driver uvicfmt3.o driver.o uvic_formatter.o
